package com.student.demo.service.impl;

import com.student.demo.dao.StudentDao;
import com.student.demo.entiy.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentService implements com.student.demo.service.StudentService {
    @Autowired
    private StudentDao studentDao;

    @Override
    public void addStudent(String name, Integer age) {
        studentDao.addStudent(name, age);
    }

    @Override
    public List<Student> queryStudent(String name){
        return studentDao.queryStudent(name);
    }
}
